home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
progs
/
thor
/
thor_2.4
/
thor.lha
/
rexx
/
FSE
/
PreviewMsg.fse
next >
Wrap
Text File
|
1996-11-11
|
920b
|
43 lines
/* PreviewMsg.fse by Troels Walsted Hansen
** $VER: PreviewMsg.fse v1.00 (16.11.94)
**
** An ARexx script that shows you (in THOR's messagetext listview)
** what your message will look like when read by others in THOR.
*/
options results
/* needs FSE and THOR functions */
if(substr(address(),1,8) ~= "THOR_FSE") then
do
say "This script should only be started from inside the FSE."
exit 20
end
else fseport = address()
p = ' ' || address() || ' ' || show('P',,)
thorport = pos(' THOR.',p)
if thorport > 0 then thorport = word(substr(p,thorport+1),1)
else
do
say 'No THOR port found!'
exit 10
end
/* preview msg text in THOR */
address(fseport)
SAVEFILE 't:PreviewMsg.fse.temp.file'
address(thorport)
THORTOFRONT
SHOWTEXT 't:PreviewMsg.fse.temp.file'
if(rc ~= 0) then REQUESTNOTIFY TEXT '"'THOR.LASTERROR'"' BT '"_Ok"'
/* cleanup and exit */
address command 'delete >nil: t:PreviewMsg.fse.temp.file'
exit